home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / grantpt.z / grantpt
Encoding:
Text File  |  1998-10-20  |  2.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. ggggrrrraaaannnnttttpppptttt((((3333CCCC))))                                                        ggggrrrraaaannnnttttpppptttt((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _gggg_rrrr_aaaa_nnnn_tttt_pppp_tttt - grant access to the slave pseudo-terminal device
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_tttt_dddd_llll_iiii_bbbb_...._hhhh_>>>>
  13.  
  14.      _iiii_nnnn_tttt _gggg_rrrr_aaaa_nnnn_tttt_pppp_tttt_((((_iiii_nnnn_tttt _ffff_iiii_llll_dddd_eeee_ssss);
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The function _gggg_rrrr_aaaa_nnnn_tttt_pppp_tttt changes the mode and ownership of the slave pseudo-
  18.      terminal device associated with its master pseudo-terminal counter part.
  19.      _f_i_l_d_e_s is the file descriptor returned from a successful open of the
  20.      master pseudo-terminal device.  A _ssss_eeee_tttt_uuuu_iiii_dddd root program [see _ssss_eeee_tttt_uuuu_iiii_dddd(2)] is
  21.      invoked to change the permissions.  The user ID of the slave is set to
  22.      the effective owner of the calling process and the group ID is set to a
  23.      reserved group.  The permission mode of the slave pseudo-terminal is set
  24.      to readable, writeable by the owner and writeable by the group.
  25.  
  26. RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
  27.      Upon successful completion, the function _gggg_rrrr_aaaa_nnnn_tttt_pppp_tttt returns _0000; otherwise it
  28.      returns _----_1111.  Failure could occur if _f_i_l_d_e_s is not an open file
  29.      descriptor, if _f_i_l_d_e_s is not associated with a master pseudo-terminal
  30.      device, or if the corresponding slave device could not be accessed.
  31.  
  32. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  33.      _oooo_pppp_eeee_nnnn(2), _ssss_eeee_tttt_uuuu_iiii_dddd(2), _pppp_tttt_ssss_nnnn_aaaa_mmmm_eeee(3C), _uuuu_nnnn_llll_oooo_cccc_kkkk_pppp_tttt(3C)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.